package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.TagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create ${}YEAR-06-10 8:27
 */
@Api(tags = "Blog[文章标签]")
@RestController
public class TagController {

    @Autowired
    private TagService tagService;

    @SystemLog(notes = "获取文章标签列表{前台博客系统}")
    @ApiOperation(value = "获取文章标签列表接口",notes = "获取文章标签列表相关数据数据")
    @GetMapping("/tags")
    public ResponseResult getTags()
    {
        return tagService.getTags();
    }

}
